/* 初始化exress */
const app = require("./utils/initExpress")
/* 连接数据库 */
const db = require("./utils/connectDB")
/* 接口监听 */
require("./utils/api")(app,db)


/* 开启服务 */
const port = 8000
app.listen(port,(err) => {
  if(err) throw err
  console.log(`server running in ${port}`)
})